﻿using System;
using System.Data.Common;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using Pub.Class;

namespace GTS.Channel.Api {
    /// <summary>
    /// 全局Global操作
    /// </summary>
    public class Global : System.Web.HttpApplication {
        /// <summary>
        /// Application_Start
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Application_Start(object sender, EventArgs e) {
            Data.UsePool("ConnString", "MiniBox");
        }
        /// <summary>
        /// Application_End
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Application_End(object sender, EventArgs e) { 
        
        }
        /// <summary>
        /// Application_Error
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Application_Error(object sender, EventArgs e) {
            Base.WriteLog(Server.GetLastError().GetBaseException());
        }
        /// <summary>
        /// Session_Start
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Session_Start(object sender, EventArgs e) { 
        
        }
        /// <summary>
        /// Session_End
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Session_End(object sender, EventArgs e) { 
        
        }
    }
}
